import type { Options, Placement } from '@popperjs/core';

export interface TooltipProps {
  content?: string;
  trigger?: 'hover' | 'click';
  placement?: Placement;
  manual?: boolean;
  popperOptions?: Partial<Options>;
  transition?: string;
  openDelay?: number;
  closeDelay?: number;
}

export interface TooltipEmits {
  (e: 'visibleChange', value: boolean): void;
}

export interface TooltipInstance {
  open: (open?: boolean) => void;
  close: (open?: boolean) => void;
}